<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set value="${pageContext.request.contextPath }" var="path"
       scope="page"></c:set>
<%@ page isELIgnored="false" %>
<!DOCTYPE html>
<html>

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>模板页（原精品课程申请）</title>
    <link type="text/css" href="${path }/static/css/index.css" rel="stylesheet" />

    <meta http-equiv="Page-Enter" content="blendTrans(Duration=0.5)" />
    <meta http-equiv="Page-Exit" content="blendTrans(Duration=0.5)" />
</head>
<style type="text/css">
    .tAble{
        border-collapse: collapse;
        margin: 0 auto;
        width: 747px;
        text-align: center;
    }
    .tAble td,
    .tAble th {
        /* border-width: 1px 0 1px 0;
        border-style: solid;
        border-color: black; */

        border: 1px solid #888787;
        color: #666;
        height: 30px;


    }
    .tAble thead th {
        background-color: #AAAAAA;
        width: 100px;
    }
    .tAble:nth-child(odd) {
        background: #fff;
    }
    .tAble .tR:nth-child(even) {
        background: #fff;
    }
    .but-td {
        border: 0;
        outline: none;
        width: 50px;
        height: 25px;
    }
    .but-tr{
        border: 0;
        outline: none;
        width: 100px;
        height: 25px;
    }
    .but {
        -webkit-transition-duration: 0.4s; /* Safari */
        transition-duration: 0.4s;
    }
    .but:hover {
        background-color: #AAAAAA; /* Green */
        color: #666;
    }

</style>
<body>
<div id="frame">
    <div id="outer">
        <div id="header">
            <a href="/index/"><div id="logo"></div></a>
            <div id="contact">
                <c:choose>
                    <c:when test="${not empty u}">
                        <div>用户: ${u.userName }</div>
                    </c:when>
                    <c:otherwise>
                        <a href="/admin/User/teacherLogin">登录</a>
                    </c:otherwise>
                </c:choose>
                <a href="/admin/User/zhuceshow">注册</a> <a href="/admin/User/zhuxiao">注销</a>
            </div>
        </div>
        <div class="clear"></div>
        <div id="navigator">
            <div id=“面板1” frag="面板1">
                <div frag="窗口1">
                    <div id="wp_nav_w1">
                        <ul class="wp_nav"
                            data-nav-config="{drop_v: 'down', drop_w: 'right', dir: 'y', opacity_main: '-1', opacity_sub: '-1', dWidth: '0'}">
                            <li class="nav-item i1 "><a href="/index/" title="首页"
                                                        target="_self"> <span class="item-name">首页</span></a> <i
                                    class="mark"></i></li>
                            <li class="nav-item i2 "><a href="/admin/declare/ht.do"
                                                        title="精品课程申报"> <span class="item-name">精品课程申报</span></a> <i
                                    class="mark"></i></li>
                            <li class="nav-item i3 "><a
                                    href="/admin/User/gr.do?userId=${u.userId }" title="最新通知"
                                    target="_self"> <span class="item-name">个人信息</span></a> <i
                                    class="mark"></i></li>
                            <li class="nav-item i4 "><a href="/admin/declare/gl.do" title="政策文件"
                                                        target="_self"> <span class="item-name">课程管理</span></a> <i
                                    class="mark"></i></li>
                            <li class="nav-item i5 "><a
                                    href="/admin/declare/teacherShow.do?userId=${u.userId }"
                                    title="课程查看" target="_self"> <span class="item-name">课程查看</span></a>
                                <i class="mark"></i></li>
                            <li class="nav-item i6 "><a href="#" title="工作经验"
                                                        target="_self"> <span class="item-name">工作经验</span></a> <i
                                    class="mark"></i></li>
                            <li class="nav-item i7 "><a href="#" title="表格下载"
                                                        target="_self"> <span class="item-name">表格下载</span></a> <i
                                    class="mark"></i></li>
                            <li class="nav-item i8 "><a href="#" title="相关链接"
                                                        target="_self"> <span class="item-name">相关链接</span></a> <i
                                    class="mark"></i></li>
                        </ul>
                    </div>
                </div>
            </div>
            <div class="clear"></div>
        </div>
        <div id="navigator">
            <div frag="面板1">
                <div frag="窗口1">
                    <div id="wp_nav_w1">
                        <ul class="wp_nav"
                            data-nav-config="{drop_v: 'down', drop_w: 'right', dir: 'y', opacity_main: '-1', opacity_sub: '-1', dWidth: '0'}">
                            <li class="nav-item i2 ">
										<span class="item-name">
											<h1>精品课程申报管理</h1>
										</span>
                                <i class="mark"></i>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
            <div class="clear"></div>
            <div frag="面板6">
                <div frag="窗口6">
<%--                    <div class="tbar">--%>
<%--                        <span frag="标题">&nbsp;</span></div>--%>
                    <div id="boxCity">
                        <div class="articlecontent ">
                            <table width="100%" class="tAble">
                                <thead>
                                <tr class="tR">
                                    <th class="tH" width="15%" height="50px">
                                        申报标题
                                    </th>
                                    <th class="tH" width="60%">
                                        申报内容
                                    </th>
                                    <th class="tH">
                                        管理功能
                                    </th>
                                </tr>
                                </thead>
                                <tr class="tR">
                                    <td class="tD" width="15%" height="40px">
                                        课程名称：
                                    </td>
                                    <td class="tD" width="60%">

                                        <input  id="vu" type="text" name=cName value="${cd.cName }"/>
                                    </td>

                                    <td>
                                        <input id="xiugai" class="but but-td" type="submit" value="修改">
                                        <span id="xinxi"></span>
                                    </td>
                                </tr>
                                <tr class="tR">
                                    <td class="tD" height="40px">
                                        负责人：
                                    </td>
                                    <td class="tD">
                                        <input  id="serialNumber" type="hidden" name="serialNumber" value="${cd.serialNumber}">
                                        <input type="text" name="cPrincipal" value="${cd.cPrincipal}"/>
                                    </td>

                                    <td>
                                        <input class="but but-td" type="submit" value="修改">
                                    </td>
                                </tr>
                                <tr class="tR">
                                    <td class="tD" height="40px">
                                        所属学院：
                                    </td>
                                    <td class="tD">
                                        <input type="text" name="college" value="${cd.college}"/>
                                    </td>

                                    <td>
                                        <input class="but but-td" type="submit" value="修改">
                                    </td>
                                </tr>
                                <tr class="tR">
                                    <td class="tD" height="40px">
                                        所属学科：
                                    </td>
                                    <td class="tD">
                                        <input type="text" name="discipline" value="${cd.discipline}"/>
                                    </td>

                                    <td>
                                        <input class="but but-td" type="submit" value="修改">
                                    </td>
                                </tr>

                                <tr class="tR">
                                    <td class="tD" height="40px">
                                        文档文件名：
                                    </td>
                                    <td class="tD">
                                        <input id="courseWen" type="text" name="courseWen" />
                                    </td>

                                    <td>
                                    </td>
                                </tr>
                                <tr class="tR">
                                    <td class="tD" height="40px">
                                        文档文件：
                                    </td>
                                    <td class="tD">
                                        <form id="uploadForm" enctype="multipart/form-data" method="post">
                                            <input type="file" name="file">
                                        </form>
                                        <input  id="courseId" type="hidden" name="courseId" value="${ci.courseId}">
                                        <input  id="cName" type="hidden" name="cName" value="${ci.courseDescription}">
                                    </td>

                                    <td>
                                        <input id="upload" class="but but-td" type="submit" value="上传">
                                        <span id="msg"></span>
                                    </td>
                                </tr>
                                <tr class="tR">
                                    <td class="tD" height="40px">
                                        视频文件名：
                                    </td>
                                    <td class="tD">
                                        <input id="courseView" type="text" name="courseView" />
                                    </td >

                                    <td>
                                    </td>
                                </tr>
                                <tr class="tR">
                                    <td class="tD" height="40px">
                                        视频文件：
                                    </td>
                                    <td class="tD">
                                        <form id="uploadForm2" enctype="multipart/form-data" method="post">
                                            <input type="file" name="file">
                                        </form>
                                    </td >

                                    <td>
                                        <input id="upload2" class="but but-td" type="submit" value="上传">
                                        <span id="msg2"></span>
                                    </td>
                                </tr>

                                <tr style="height: 50px;">
                                    <td class="tD" colspan="3"><input class="but but-tr" type="submit" value="返回"></td>
                                </tr>
                            </table>

                        </div>
                    </div>
                </div>
            </div>
            <div class="clear"></div>



            <!--div id="copyright">版权所有 2020 重庆工商职业学院 合川校区地址：重庆市合川区高校园区思源路15号 邮编：401520 电话：023-42860043</div-->
        </div>
    </div>


    <script src="${path}/static/admin/js/jquery-2.2.3.min.js"></script>
    <script type="text/javascript">

        $(function() {
            $('#xiugai').click(function() {
                var cName = $('#vu').val();//得到值
                var serialNumber = $('#serialNumber').val();
                $.get("/admin/declare/Xiugai", {"serialNumber":serialNumber ,"cName":cName}, function(data){
                    //返回结果处理
                    var obj=eval(data);
                    $("#vu").val(obj.cName).css("color","red");
                    //$('#vu').val(obj.cName);
                }, "json");
            });
        });
        $(function() {
            $('#upload').click(function() {
                var formData = new FormData($('#uploadForm')[0]);
                formData.append("courseId", $("#courseId").val());
                formData.append("cName", $("#cName").val());
                formData.append("courseWen", $("#courseWen").val());
                $.ajax({
                    type : 'POST',
                    url : '/upload/upload3',
                    data : formData,
                    cache : false,
                    processData : false,
                    contentType : false,

                }).success(function(data) {
                    var result = JSON.parse(data);
                    $("#msg").html(result.back).css("color","red");
                }).error(function() {
                    $("#msg").html("上传失败").css("color","red");
                });
            });
        });
        $(function() {
            $('#upload2').click(function() {
                var formData = new FormData($('#uploadForm2')[0]);
                formData.append("courseId", $("#courseId").val());
                formData.append("cName", $("#cName").val());
                formData.append("courseView", $("#courseView").val());
                $.ajax({
                    type : 'POST',
                    url : '/upload/upload2',
                    data : formData,
                    cache : false,
                    processData : false,
                    contentType : false,

                }).success(function(data) {
                    var result = JSON.parse(data);
                    $("#msg2").html(result.back).css("color","red");
                }).error(function() {
                    $("#msg2").html("上传失败").css("color","red");
                });
            });
        });



    </script>
</div>
</body>

</html>
<img src="/_visitcount?siteId=70&type=1&columnId=2874" style="display:none" width="0" height="0"></image>
</strong>